Discover january 1 1970 day of week, include the articles, news, trends, analysis and practical advice about january 1 1970 day of week on alibabacloud.com
PHP provides us with a large number of functions to get the day of the week, we commonly use the date () function, let me introduce the date of the week to get a specific instance.
PHP date () parameter description
Here the main use of the W this
D & amp; nbsp; the day of the month, which has the 2nd digit from the leading zero, 01 to 31 & amp; nbsp; D & amp; nbsp; the day of the week, expressed in text, 3. Mon to the day of Sun & amp; nbsp; j & amp; nbsp; month
D. The day of the month,
The month before the next day of the day before the javaScript day, the month before// Monthly subscription on the date of the previous month// Previous monthFunction LEFT_CALENDAR (){Var output = new Date (disp. get ("CALENDAR"). replace (/-/g ,"/")
DECLARE @ DateDATETIMESET @ DateGETDATE () -- previous DAY, previous DAY of given Date SELECTDATEADD (DAY,-1, @ Date) AS previous DAY -- next DAY, next DAY of given Date SELECTDATEADD (DAY, 1, @ Date) AS the next day GO -- the beginning of the month,
Echo ' The first day of the week (Sunday is the beginning of the week): '. Date (' y-m-d ', Time () -86400*date (' W ')). '';
Echo ' The first day of the week (Monday is the beginning of the week): '. Date (' y-m-d ', Time () -86400*date (' W
Common parametersFormat: DateDisplays the current date time.Format: Date mmddhhmm # In short, it's the day of the month.Format: Date mmddhhmmyyyyFormat: Date MMDDHHMM.SSFormat: Date MMDDHHMMYYYY.SSSet the current date time, only the root user can
In fact, it is accurate to the week, that is, given the current time, know the first week of the semester. the key to the problem seems to be that the rule is not found. I am using the following code (php), which is not accurate enough: {code ...}
No nonsense.CodeThe comment is very detailed. It is certainly okay to understand it!
Declare @ date datetimeSet @ date = getdate ()-The previous day, the previous day of the given dateSelect dateadd (day,-1, @ date) as 'previous Day'-The next day,
Datedate represents a specific moment, accurate to milliseconds. Before JDK1.1, date has two other functions. It allows you to interpret dates as year, month, day, hour, minute, and second values. It also allows formatting and parsing of date
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.